<script language="javascript">
/*验证添加表单*/
$(function(){
	$("#formaddcategory").validate({
		event: "keyup",
		errorClass: "wrong",
		rules: {
			txtCategory: {required:true},
			txtSort: {required:true,number: true}
		},
		messages: {
			txtCategory: {required: "<tpl> $errShopProCateClassIsEmpty </tpl>"},
			txtSort: {required: "<tpl> $errShopProCateSortIsNotNumber </tpl>",number: "<tpl> $errShopProCateSortIsNotNumber </tpl>"}
		}
	});
});
</script>
